<?php

namespace app\validate;

use think\Validate;

class HonorValidate extends Validate
{
    protected $rule = [
        'title'       => 'require|max:100',
        'description' => 'require|max:500',
        'date'        => 'require|date',
    ];

    protected $message = [
        'title.require'       => '荣誉标题不能为空',
        'description.require' => '荣誉描述不能为空',
        'date.require'        => '颁发日期不能为空',
        'date.date'           => '日期格式不正确',
    ];
}
